home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
admin
/
linuxcon.000
/
linuxcon
/
linuxconf-1.6
/
misc
/
error.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-25
|
727b
|
42 lines
#include "misc.h"
#include "misc.m"
/*
Print an error message in a popup
*/
static void xconf_msg (
const char *title,
const char *icon,
const char *msg,
va_list list)
{
char buf[2000];
vsprintf (buf,msg,list);
dialog_clear();
dialog_msgbox ((char*)title,buf,icon);
}
/*
Print an error message in a popup
*/
void xconf_error (const char *msg, ...)
{
va_list list;
va_start (list,msg);
html_setpopup();
xconf_msg (MSG_U(T_ERROR,"Error"),MSG_U(I_ICONERROR,"Error"),msg,list);
va_end (list);
}
/*
Print a notice to the user.
*/
void xconf_notice (const char *msg, ...)
{
va_list list;
va_start (list,msg);
xconf_msg (MSG_U(T_PLEASE,"Please note")
,MSG_U(I_ICONNOTICE,"Notice"),msg,list);
va_end (list);
}